<div class="faqs index">
	<h2><?php __('Faqs');?></h2>
	<div class="actions">
		<?php echo $this->Html->link(__('Novo', true), array('action' => 'add')); ?>
	</div>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('pergunta');?></th>
			<th><?php echo $this->Paginator->sort('resposta');?></th>
			<th width="70px"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($faqs as $faq):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $faq['Faq']['pergunta']; ?>&nbsp;</td>
		<td><?php echo $faq['Faq']['resposta']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($this->Html->image('edit.png', array('alt' => 'Editar', 'title' =>'Editar'), true), array('action' => 'edit', $faq['Faq']['id_faq']), array('escape'=>false)); ?>
			<?php echo $this->Html->link($this->Html->image('trash.png', array('alt' => 'Apagar', 'title' =>'Apagar'), true), array('action' => 'delete', $faq['Faq']['id_faq']), array('escape'=>false), sprintf(__('Deseja apagar a pergunta %s?', true), $faq['Faq']['pergunta'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>